/*
 * @Author: wangkg wangkegui@longfor.com
 * @Date: 2024-06-17 16:40:12
 * @Description:
 */
import { defHttp } from '@/utils/http/axios';
import type { GetUserInfoModel } from './model/userModel';

enum Api {
  Logout = '/baseService/oauth2/revoke',
  GetUserInfo = '/baseService/v1/app/currentUser/baseInfo'
}
/**
 * @description: getUserInfo
 */
export function getUserInfo() {
  return defHttp.get<GetUserInfoModel>({ url: Api.GetUserInfo }, { successMessageMode: 'none' });
}

/**
 * @description: getUserInfo
 */
export function doLogout() {
  return defHttp.get({ url: Api.Logout }, 
    { isTransformResponse: true } );
}
